using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPrExtraType")]
    public class PrExtraType
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ExtId", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public int ExtId { get; set; }

		[ForeignKey("EmpType")]
		[DataMember, Display(Name = "EmpTypeId", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<int> EmpTypeId { get; set; }

		[DataMember, Display(Name = "ExtCode", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string ExtCode { get; set; }

		[DataMember, Display(Name = "ExtName", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string ExtName { get; set; }

		[DataMember, Display(Name = "ExtNameShort", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string ExtNameShort { get; set; }

		[ForeignKey("CmdType")]
		[DataMember, Display(Name = "CmdTypeId", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<int> CmdTypeId { get; set; }

		[DataMember, Display(Name = "ExtFlag", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string ExtFlag { get; set; }

		[DataMember, Display(Name = "ExtTax", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string ExtTax { get; set; }

		[DataMember, Display(Name = "ExtMonthly", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string ExtMonthly { get; set; }

		[DataMember, Display(Name = "ExtAmount", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<double> ExtAmount { get; set; }

		[DataMember, Display(Name = "ExtOthCode", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string ExtOthCode { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "EditSystem", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public string EditSystem { get; set; }

		[ForeignKey("Contact")]
		[DataMember, Display(Name = "ContactId", ResourceType = typeof(Resources.PrExtraTypesResource))]
        public Nullable<int> ContactId { get; set; }

		public virtual HRM.MasEmployeeType EmpType { get; set; }

		public virtual PsCommandType CmdType { get; set; }

		public virtual ICM.MasContact Contact { get; set; }

    }
}